<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/11/7
  Time: 11:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fm" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>add</title>
</head>
<body>
<form method="post" action="${pageContext.request.contextPath}/user/add" id="userForm" name="userForm">

</form>

<%--<fm:form method="post" modelAttribute="sysUser">--%>
    <fm:errors path="account"/> <br>
    用户编码：<fm:input path="account"/> <br>
    <fm:errors path="realName"/> <br>
    用户名称：<fm:input path="realName"/> <br>
    <fm:errors path="password"/> <br>
    用户密码：<fm:password path="password"/> <br>
    <fm:errors path="birthday"/> <br>
    用户生日：<fm:input path="birthday" Class="Wdate" readonly="readonly" onclick="WdatePicker();" class="Wdate"/> <br>
    用户地址：<fm:input path="address"/> <br>
    用户电话：<fm:input path="phone"/> <br>
    <fm:radiobutton path="roleId" value="1"/>系统管理员
    <fm:radiobutton path="roleId" value="2"/>经理
    <fm:radiobutton path="roleId" value="3" checked="checked"/>普通用户
    <br>
    <input type="submit" value="保存"/>
<%--</fm:form>--%>
<script>
    var idPic = null;
    var errorrinfo = null;
    $(function () {
        idPic = $("#idPic");
        errorrinfo = $("#errorinfo");
        if (errorrinfo.val() == null || errorrinfo.val() == "") {
            idPic.next().html("* 上传大小不能超过 500KB * 上传文件类型必须为：.jpg、.jpeg、.png、.pneg");
        }else{
            idPic.next().html(errorrinfo.val());
        }
    })
</script>
</body>
</html>
<%--</jsp:root></jsp:root>--%>